package com.configClient.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * 作者: LCG
 * 日期: 2019/12/5 10:32
 * 描述:
 */

@Component
@ConfigurationProperties(prefix = "com.lcg")
@Data
@RefreshScope
public class MyTestConfig {

    private String test;

    private String username;

    private String password;

}
